table of contents
PAM_CHAUTHTOK(3) | Linux-PAM Manual | PAM_CHAUTHTOK(3) |
NAME
pam_chauthtok - updating authentication tokens
SYNOPSIS
#include <security/pam_appl.h>
int pam_chauthtok(pam_handle_t *pamh, int flags);
DESCRIPTION
The pam_chauthtok function is used to change the authentication token for a given user (as indicated by the state associated with the handle pamh).
The pamh argument is an authentication handle obtained by a prior call to pam_start(). The flags argument is the binary or of zero or more of the following values:
PAM_SILENT
PAM_CHANGE_EXPIRED_AUTHTOK
RETURN VALUES
PAM_AUTHTOK_ERR
PAM_AUTHTOK_RECOVERY_ERR
PAM_AUTHTOK_LOCK_BUSY
PAM_AUTHTOK_DISABLE_AGING
PAM_PERM_DENIED
PAM_SUCCESS
PAM_TRY_AGAIN
PAM_USER_UNKNOWN
SEE ALSO
pam_start(3), pam_authenticate(3), pam_setcred(3), pam_get_item(3), pam_strerror(3), pam(8)
03/02/2009 | Linux-PAM Manual |